<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"  xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<meta charset="utf-8">
<head th:include="mall/advert/include::header"></head>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-select@1.13.14/dist/css/bootstrap-select.min.css">
<link rel="stylesheet" type="text/css" href="/css/plugins/layui/layui.css"/>
<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>账号添加</h5>
                </div>
                <div class="ibox-content">
                    <form class="form-horizontal m-t" id="signupForm">
                        <div class="form-group">
                            <label class="col-sm-3 control-label">软件ID:</label>
                            <div class="col-sm-8">
                                <input id="softId" name="softId" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">软件名称:</label>
                            <div class="col-sm-8">
                                <input id="softName" name="softName" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">机器编号:</label>
                            <div class="col-sm-8">
                                <input id="machineNo" name="machineNo" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">机位编位:</label>
                            <div class="col-sm-8">
                                <input id="seatNo" name="seatNo" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">昵称:</label>
                            <div class="col-sm-8">
                                <input id="nickName" name="nickName" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">手机号码:</label>
                            <div class="col-sm-8">
                                <input id="mobile" name="mobile" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">软件实名:</label>
                            <div class="col-sm-8">
                                <input id="softReal" name="softReal" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">手机实名:</label>
                            <div class="col-sm-8">
                                <input id="mobileReal" name="mobileReal" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">备注:</label>
                            <div class="col-sm-8">
                                <input id="remark" name="remark" class="form-control" type="text">
                            </div>
                        </div>



                        <div class="form-group text-center">
                            <div class="col-sm-8 col-sm-offset-2">
                                <button type="submit" class="btn btn-primary"><i class="fa fa-check"></i>提交</button>
                                <div class="btn btn-danger" onclick="closeDow()"><i class="fa fa-remove"></i> 关闭</div>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<div th:include="mall/advert/include::footer"></div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap-select@1.13.14/dist/js/bootstrap-select.min.js"></script>
<script type="text/javascript" src="/js/appjs/read/account/add.js"></script>
<script type="text/javascript" src="/js/plugins/layui/layui.js"></script>
<script type="text/javascript">
    function closeDow() {
        var index = parent.layer.getFrameIndex(window.name); // 获取窗口索引
        parent.layer.close(index);
    }
    $('#centreId').selectpicker({
        'selectedText': 'cat',
        'noneSelectedText':'请选择商户',
        'deselectAllText':'全不选',
        'selectAllText': '全选',
    });
    layui.use('laydate', function(){
        var laydate = layui.laydate;
        laydate.render({
            elem: '#timestart'
            ,type: 'datetime'
        });

        laydate.render({
            elem: '#timeend'
            ,type: 'datetime'
        });
        laydate.render({
            elem: '#upStartTime' , type: 'datetime'
        });

        laydate.render({
            elem: '#upEndTime' , type: 'datetime'
        });
    })


    $(function() {
        // 设置默认限卖时间
        var date = new Date();
        var year = date.getFullYear();
        var mon=date.getMonth()+1 < 10 ? "0"+ date.getMonth()+1:date.getMonth()+1;
        var da=date.getDate() < 10 ? "0"+ date.getDate():date.getDate();
        var h=date.getHours() < 10 ? "0"+ date.getHours():date.getHours();
        var m=date.getMinutes() < 10 ? "0"+ date.getMinutes():date.getMinutes();

        date.setDate(date.getDate()+1);
        var endyear = date.getFullYear();
        var endmon=date.getMonth()+1 < 10 ? "0"+ date.getMonth()+1:date.getMonth()+1;
        var endda=date.getDate() < 10 ? "0"+ date.getDate():date.getDate();
        var endh=date.getHours() < 10 ? "0"+ date.getHours():date.getHours();
        var endm=date.getMinutes() < 10 ? "0"+ date.getMinutes():date.getMinutes();
        $("#timestart").val(year+"-"+mon+"-"+da+" 20:30:00");
        $("#timeend").val(endyear+"-"+endmon+"-"+endda+" 20:00:00");
        $("#upStartTime").val(year+"-"+mon+"-"+da+" 20:00:00");
        $("#upEndTime").val(endyear+"-"+endmon+"-"+endda+" 20:00:00");
    })
</script>
</body>

</html>
